package config

import (
	"flag"
)

type Config struct {
	AppPort string `mapstructure:"APP_PORT"`
}

func LoadConfig() (*Config, error) {
	var config Config
	flag.StringVar(&config.AppPort, "p", "9091", "Server port")
	flag.Parse()

	return &config, nil
}
